import request from '../networks/request';
// 注册 传递邮箱和密码
export const registerMail = (data) => {
    return request({
        url: '/register',
        method: 'post', 
        data:data , 
    });
};
// 邮箱发送验证码
export const sendMail = (data) => {
    return request({
        url: '/sendmail',
        method: 'get', 
        params:data , 
    });
};
// 判断数据库中邮箱是否存在
export const verifyemail = (data) => {
    return request({
        url: '/verifyemail',
        method: 'post', 
        data:data , 
    });
};

//忘记密码-修改
export const forgetpwd = (data) => {
    return request({
        url: '/updatepwd',
        method: 'put', 
        data:data , 
    });
};